import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/home/index'
Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'index',
        component: index
    },
    {
        path: '/test',
        name: 'test',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/test')
    },
    {
        path: '/about',
        name: 'about',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/about/about')
    },
    {
        path: '/hall',
        name: 'hall',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/experience/hall')
    },
    {
        path: '/example',
        name: 'example',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/case/example')
    },
    {
        path: '/contact',
        name: 'contact',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/contact/contact')
    },
    {
        path: '/news',
        name: 'news',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/news/news')
    },
    {
        path: '/huawei',
        name: 'huawei',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/brand/huawei')
    },
    {
        path: '/plan',
        name: 'plan',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/brand/plan')
    },
    {
        path: '/scene',
        name: 'scene',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/brand/scene')
    },
    {
        path: '/experience2',
        name: 'experience2',
        component: () =>
            import ( /* webpackChunkName: "about" */ '../views/brand/experience2.vue')
    },
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router